package br.com.lsi.bean;

import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import br.com.lsi.business.AlunoBusiness;
import br.com.lsi.entidades.Aluno;

@ManagedBean
@SessionScoped
public class AlunoBean {
	private AlunoBusiness alunoBusiness;

	public void salvar(Aluno aluno) {
		alunoBusiness.salvar(aluno);
	}

	public void deletar(Aluno aluno) {
		alunoBusiness.deletar(aluno);
	}

	public void alterar(Aluno aluno) {
		alunoBusiness.alterar(aluno);
	}
	public List<Aluno> listar() {
		return alunoBusiness.listar();
	}
}
